package org.seckill.service;

import org.seckill.dto.Exposer;
import org.seckill.dto.SeckillExcution;
import org.seckill.entity.Seckill;
import org.seckill.enums.SeckillStateEnum;
import org.seckill.exception.RepeatkillException;
import org.seckill.exception.SeckillCloseException;
import org.seckill.exception.SeckillException;

import java.util.List;

/**
 * Created by sanmao on 2017/6/15.
 */
public interface SecKillService {
    List<Seckill> getSecKillList();

    Seckill getSecKillById(long secKillId);

    Exposer exportSeckillUrl(long seckillId);

    SeckillExcution executeSeckill(long seckillId, long userPhone, String md5)throws SeckillException ,RepeatkillException,SeckillCloseException;


}
